/**
 * Created by Administrator on 2017/7/4.
 */
exports.authGithub = function *(req, res) {
    // The request will be redirected to GitHub for authentication, so this
    // function will not be called.
}

exports.authGithubCb = function *(req, res) {
  req.session.user = req.session.passport.user;
  if (req.session.url) {
    res.redirect(req.session.url);
  } else {
    res.redirect('/');
  }
}